<template>
  <div id="main">
    <!-- <span>{{ ss }}</span> -->
  </div>
</template>

<script>
import * as echarts from "echarts";
import { onMounted } from "vue";
export default {
  // props: {
  //   jmr: Number,
  // },

  setup() {
    // console.log(props);
    // let num = ref(0);
    // let num;

    onMounted(() => {
      // num = props.jmr;
      var myChart = echarts.init(document.getElementById("main"));
      // 绘制图表
      myChart.setOption({
        title: {
          text: "统计 2021年12月",
          left: "left",
        },

        series: [
          {
            name: "Access From",
            type: "pie",
            radius: "50%",
            left: "center",
            data: [
              { value: 13960, name: "收入" },

              { value: 1369, name: "支出" },
            ],
            emphasis: {
              itemStyle: {
                shadowBlur: 10,
                shadowOffsetX: 0,
                shadowColor: "rgba(0, 0, 0, 0.5)",
              },
            },
          },
        ],
      });
    });
    return {
      // num,
    };
  },
};
</script>

<style lang="less" scoped>
#main {
  width: 100%;
  height: 100%;
}
</style>
